// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** doChat POST /api/chat/${param0}/send */
export async function doChatUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.doChatUsingPOSTParams,
  options?: { [key: string]: any }
) {
  const { roomId: param0, ...queryParams } = params
  return request<string>(`/api/chat/${param0}/send`, {
    method: 'POST',
    params: {
      ...queryParams,
    },
    ...(options || {}),
  })
}

/** getChatRoomList GET /api/chat/rooms */
export async function getChatRoomListUsingGet(options?: { [key: string]: any }) {
  return request<API.ChatRoom[]>('/api/chat/rooms', {
    method: 'GET',
    ...(options || {}),
  })
}
